<?php
$prod['ARTICLE_ID'] = '';
$prod['ARTICLE_REF'] = '';
$prod['ARTICLE_LIBELLE'] = '';
$prod['ARTICLE_SEUIL'] = '';

if ($produit != array()) {
    $prod['ARTICLE_ID'] = $produit->ARTICLE_ID;
    $prod['ARTICLE_REF'] = $produit->ARTICLE_REF;
    $prod['ARTICLE_LIBELLE'] = $produit->ARTICLE_LIBELLE;
    $prod['ARTICLE_SEUIL'] = $produit->ARTICLE_SEUIL;
}
?>

<div>
    <div class="formArticle">
        <form>
            <input type="hidden" id="ARTICLE_ID" value="<?php echo $prod['ARTICLE_ID']; ?>"/>
            <table>
                <tr>
                    <td>
                        <label for="ARTICLE_REF">Reference :</label>
                    </td>
                    <td>
                        <input type="text" id="ARTICLE_REF" value="<?php echo $prod['ARTICLE_REF']; ?>" placeholder="Reference"/>
                    </td>
                </tr>
                <tr>
                    <td>
                        <label for="ARTICLE_LIBELLE">Libelle :</label>
                    </td>
                    <td>
                        <input type="text" id="ARTICLE_LIBELLE" value="<?php echo $prod['ARTICLE_LIBELLE']; ?>" placeholder="Libelle"/><br />
                    </td>
                </tr>
                <tr>
                    <td>
                        <label for="ARTICLE_SEUIL">Seuil d'alerte :</label>
                    </td>
                    <td>
                        <input type="number" min="0" id="ARTICLE_SEUIL" value="<?php echo $prod['ARTICLE_SEUIL']; ?>" placeholder="Seuil d'alerte"/><br />
                    </td>
                </tr>
            </table>
        </form>
    </div>
    <div class="formMatPrem">
        <table>
            <tbody>
                <?php echo $matPrem; ?>
            </tbody>
            <tfoot>
                <tr class="addMatPrem">
                    <td colspan="2"><a href="#" class="addMatPrem">Ajouter une matière première</a></td>
                </tr>
            </tfoot>
        </table>
    </div>
</div>

<style>
    div div.formArticle, div div.formMatPrem {
        float:left;
    }
    div div.formArticle {
        border-right: 1px solid black;
        padding-right: 10px;
    }
    div div.formMatPrem {
        border-left: 1px solid black;
        padding-left: 10px;
    }
</style>